{% extends 'base.html' %}
{% block content %}

{% if result %}

	{% if result.candidates %}
	<h2>Candidates found</h2>
	    <ul class="list-group">
	    {% for candidate in result.candidates %}
	        <li>{{ candidate }} <a href={% url 'Evaluator:candi_details' candidate.pk %}>View</a> </li>
	    {% endfor %}
	{% endif %}

	{% if result.questions %}
	<h2>Questions found</h2>
		{% for question in result.questions %}
		    <li>{{ question }} <a href={% url 'Evaluator:question_details' question.pk %}>View</a> </li>
		{% endfor %}
	{% endif %}

	{% if result.positions %}
	<h2>Positions found</h2>
		{% for position in result.positions %}
		    <li>{{ position }}
		{% endfor %}
	{% endif %}

	{% if result.vendors %}
	<h2>Vendors found</h2>
		{% for vendor in result.vendors %}
	    <li>{{ vendor }} <a href={% url 'Evaluator:vendor_details' vendor.pk %}>View</a> </li>
		{% endfor %}
	{% endif %}

	{% if result.users %}
	<h2>Users found</h2>
		{% for user in result.users %}
	    <li>{{ user }} <a href={% url 'Evaluator:user_details' user.pk %}>View</a> </li>
		{% endfor %}
	{% endif %}

{% else %}
	{% if message %}
		<h1>{{ message }}</h1>
	{% endif %}
{% endif %}

{% endblock %}
